package com.jia.service;

import com.jia.adpter.MapAdpater;
import com.jia.entity.Role;

import javax.jws.WebService;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by jia on 2018/4/11.
 */
@WebService
public interface UserDao {
    @XmlJavaTypeAdapter(MapAdpater.class)
    Map<String, ArrayList<Role>> getUserRoles();

    ArrayList<Role> getRoleByUserName(String name);

}
